package com.lbd.system.bean;

import com.lbd.base.bean.AbstractEntity;
import lombok.*;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Transient;
import java.math.BigDecimal;


/**
 * Created by zzl on 2016/10/28.
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@DynamicUpdate
@Entity
public class UserMoneyStatistics extends AbstractEntity {
    //资产总额
    private BigDecimal sum;
    //可用余额
    private BigDecimal availableBalance;
    //冻结金额
    private BigDecimal freezingAmount;
    //总投资额
    private BigDecimal investSum;
    //累计收益
    private BigDecimal accumulatedIncome;
    //待收总额
    private BigDecimal dueReceiveSum;

    // 待收本金（还未收到还款的本金）
    private BigDecimal unReceiveCapital;
    // 待收收益（还未收到还款的利息）
    private BigDecimal unReceiveInterest;

    //借款总额
    private BigDecimal loanSum;
    //待还本金
    private BigDecimal dueRepayCapital;
    //待还利息
    private BigDecimal dueRepayInterest;
    //总充值金额
    private BigDecimal rechargeSum;
    //总体现金额
    private BigDecimal withdrawSum;
    //用户Id
    private String userId;

    //待还总额
    @Transient
    private BigDecimal dueRepaymentSum;
}
